package com.zhengx.moduletest.di;

import android.content.Context;

import com.zhengx.moduletest.MainActivity;
import com.zhengx.moduletest.repository.TestBean;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/**
 * 提供所有repository及其他全局使用的对象
 * Created by zx on 2018/5/8.
 */

@Module(subcomponents = {MainActivityComponent.class})
public class AppModule {

    @Singleton
    @Provides
    TestBean provideActivityName(Context context) {
        return new TestBean(context.getPackageName());
    }

}
